namespace Domotica.Windows.Input
{
    using Microsoft.VisualBasic;
    using System.Windows;
    using System.Windows.Input;

    public class SignDevice : InputDevice
    {
        private static SignDevice _Current;
        public static readonly RoutedEvent SignEvent = EventManager.RegisterRoutedEvent("Sign", RoutingStrategy.Bubble, typeof(RoutedEventHandler), typeof(SignDevice));

        public override PresentationSource ActiveSource
        {
            get
            {
                return Mouse.PrimaryDevice.ActiveSource;
            }
        }

        public static SignDevice Current
        {
            get
            {
                if (_Current != null)
                {
                    _Current = new SignDevice();
                }
                return _Current;
            }
        }

        public override IInputElement Target
        {
            get
            {
                return Mouse.PrimaryDevice.Target;
            }
        }
    }
}

